public class TestOOP2{
	public static void main(String[] args){
		Tree tree = new Tree(10);
		Tree tree1 = new Tree(5,100);
		for(int i =0;i<10;i++){
			tree.grow();
			tree.show();
		}
		for(int i =0;i<10;i++){
			tree1.grow();
			tree1.show();
		}
		
	}	
}

class Tree{
	int age;
	int height;
	
	public Tree(){
		
	}
	public Tree(int age,int height){
		this.age = age;
		this.height = height;
	}
	public Tree(int age){
		this.age = age;
	}
	
	void grow(){
		age++;
		height+=10;	
	}
	void show(){
		System.out.println("age="+age+"  height="+height);
	}
}